<template>
  <div id="app">
    <el-container class="bro">
      <el-aside class="li_list">
        <router-link to="/">跳转</router-link>
        <router-link to="/add">add跳转</router-link>
        <router-link to="/giao">giao跳转</router-link>
      </el-aside>
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "App",
  // methods:{
  //   go(){
  //     this.$router.push("/add")
  //   }
  // }
};
</script>

<style>
body{
  margin: 0;
  padding: 0;
}
#app {
  width: 100%;
  height: 100%;
  background-color: #e9eef3;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.bro {
  height: 100%;
}
.li_list {
  display: flex;
  flex-direction: column;
}
</style>
